<!-- 个人中心的设置的账户安全 -->
<template>
	<view class="page">
		<!-- 安全设置列表 -->
		<view class="security-list">
			<view class="list" @click="onSecurity('password')">
				<view class="content">
					<view class="title">
						<text>修改登录密码</text>
					</view>
					<view class="describe">
						<text>建议您定期更改密码以保护账户安全</text>
					</view>
				</view>
				<view class="more">
					<text class="iconfont icon-more"></text>
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			/**
			 * 账户安全点击
			 * @param {String} type
			 */
			onSecurity(type){
				switch(type) {
					case 'password':
						uni.navigateTo({
							url: '/pages/ChangePassword/ChangePassword',
						})
						break;
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	@import 'AccountSecurity.scss';
</style>
